from typing import Any, Dict

import requests


def call_api(input_json: Dict[str, Any]) -> Dict[str, Any]:
    payload = {"markers": input_json["markers"]}
    response = requests.post("https://sg-places.herokuapp.com/display_map", json=payload)

    if response.status_code == 200:
        return response.text
    else:
        return {"status_code": response.status_code, "text": response.text}
